
package com.itboy.pay.alipay.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itboy.pay.alipay.domain.PayAlipayConfig;
import com.itboy.pay.alipay.vo.TradeVo;

/**
 * @author Zheng Jie
 * @date 2018-12-31
 */
public interface AliPayService  extends IService<PayAlipayConfig> {


    /**
     * 处理来自PC的交易请求
     * @param alipay 支付宝配置
     * @param trade 交易详情
     * @return String
     * @throws Exception 异常
     */
    String toPayAsPc(PayAlipayConfig alipay, TradeVo trade) throws Exception;

    /**
     * 处理来自手机网页的交易请求
     * @param alipay 支付宝配置
     * @param trade 交易详情
     * @return String
     * @throws Exception 异常
     */
    String toPayAsWeb(PayAlipayConfig alipay, TradeVo trade) throws Exception;
}
